<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html" xmlns="http://www.w3.org/1999/html" ng-app="dashboard">


<head>
	<?php Yii::app()->clientScript->registerCoreScript('jquery'); ?>
	<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
	
	<title>Online Vector Based Mockup &amp; Wireframing Tool &middot; Moqups</title>
	<meta name="description" content="The most stunning HTML5 App for creating high fidelity, resolution independent SVG mockups and wireframes!" />

	<link rel="shortcut icon" href="<?php echo baseTheme();?>/favicon.ico" type="image/png">
	<link rel="shortcut icon" type="image/png" href="<?php echo baseTheme();?>/favicon.ico" />

	<?php
		echo $this->meta();
	?>
	
	<script src="<?php echo baseTheme();?>/js/angular/angular.min.js"></script>
	<script src="<?php echo baseTheme();?>/js/angular/angular-cookies.min.js"></script>
	<script src="<?php echo baseTheme();?>/js/angular/angular-animate.min.js"></script>
	<script src="<?php echo baseTheme();?>/js/angular/angular-loader.min.js"></script>
	<script src="<?php echo baseTheme();?>/js/angular/angular-resource.min.js"></script>
	<script src="<?php echo baseTheme();?>/js/angular/angular-route.min.js"></script>
	<script src="<?php echo baseTheme();?>/js/angular/angular-sanitize.min.js"></script>
	<script src="<?php echo baseTheme();?>/js/angular/angular-scenario.js"></script>
	<script src="<?php echo baseTheme();?>/js/angular/angular-touch.min.js"></script>
	<script src="<?php echo baseTheme();?>/js/angular/angular-strap.min.js"></script>
	<script src="<?php echo baseTheme();?>/js/angular/text.angular.js"></script>
	<script src="<?php echo baseTheme();?>/js/angular/angular.treeview.js"></script>
	
	<link href="<?php echo baseTheme();?>/css/bootstrap/css/bootstrap.min.css" media="all" rel="stylesheet" type="text/css" />
	<link href="<?php echo baseTheme();?>/css/bootstrap/css/bootstrap-responsive.min.css" media="all" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" type="text/css" href="<?php echo baseTheme();?>/css/4.2.29/taskme.min.css" />
	<link href="<?php echo baseTheme();?>/css/4.2.29/taskme.css" media="all" rel="stylesheet" type="text/css" />
	<link href="<?php echo baseTheme();?>/css/font-awesome.min.css" media="all" rel="stylesheet" type="text/css" />
	
	
	
	<script>
	var currentUser = <?php echo (Yii::app()->user->isGuest) ? @CJSON::encode(array()) : @CJSON::encode(currentUser());?>;

	var projects = <?php echo @CJSON::encode($this->projects);?>;
	var dataDashBoard = {
		project:null
	};
	</script>
	
</head>

<body ng-controller="DashBoardController">






<div id="toolbar-wrapper">

	<div id="toolbar" class="toolbar-content clearfix" >

		<div class="logo">

			<div class="dropdown-wrapper">

				
				
				<img class="icon mockups" src="<?php echo baseTheme();?>/css/4.2.29/images/pixel.gif" alt=""/> 
					
				

				
				
			</div>
			<img class="loading" src="<?php echo baseTheme();?>/images/39-1.gif" alt=""/> 
		</div>

		<div id="account-menu">
			<div class="dropdown-wrapper right show-dropdown">
				<a href="javascript:void(0)" class="button login linkAvatar"  dropdown=0>    
					<span class="avatar" dropdown=0>
						
						<img ng-show="avatarHeader"  src="{{linkAvatar}}" alt="{{fullname}}" dropdown=0>
						<span class="nav-user-photo" ng-hide="avatarHeader" dropdown=0>
							<i class="fa fa-user" dropdown=0></i>
						</span>
					</span>    
					
					
					<span class="button-label ellipsis" dropdown=0>{{fullname}}</span>    
					<img src="<?php echo baseTheme();?>/css/4.2.29/images/pixel.gif" class="icon black-arrow-down" dropdown=0>   
				</a>   
				<div class="dropdown dropdownUser hidden" style="width:{{wdropdownUser}}" >    
					<div class="dropdown-content" >
						<a href="/" class="action menu-item open-dialog" data-dialog="account-settings">Taskme</a>
						<a href="<?php echo Yii::app()->createUrl('/profile/settings');?>" class="action menu-item open-dialog" data-dialog="account-settings">Account Settings</a>
						<span class="divider"></span>     
						<a href="<?php echo Yii::app()->createUrl('/user/logout');?>" class="action menu-item">Log out</a>
					</div>   
				</div>
			</div>
		</div>

		

	</div>

</div>

<div >

	<!-- Secondary toolbar -->
	<div id='secondary-toolbar'>

		<div id="sidebar-tabs" class='toggle-buttons'>
			<a href="javascript:void(0)" ng-click="tabprojects()" class="button middle {{activeTab1}}" data-panel="stencils"><span class="button-label">Projects</span></a>
			<a href="javascript:void(0)" ng-click="tabdatabases()" class="button middle {{activeTab2}}" data-panel="images"><span class="button-label">Databases</span></a>
		</div>
		<div  class="toolbar-content-pt">
			
	        <a href="javascript:void(0)" id="project-structure-button" ng-click="modalCreateProject()" class="button toolbar-button" title="Project structure">
                Create a project
                <i class="fa fa-plus"></i>
            </a>
			<a href="javascript:void(0)" id="collections-structure-button" onclick="ptCollections.open()" class="button toolbar-button hide menu-upload-project" title="Collections">
                Collections
                <i class="fa fa-list-alt"></i>
            </a>
			
		
			<a href="javascript:void(0)" onclick="caseProject.openBoardUpload()"  class="button toolbar-button  hide menu-upload-project" title="Upload">
                <i class="fa fa-cloud-upload"></i>
                Upload
            </a>
           
			<a href="javascript:void(0)" onclick="caseProject.openBoardLayouts()"  class="button toolbar-button  hide menu-upload-project" title="Upload">
                <i class="fa fa-thumb-tack"></i>
                Layouts
            </a>	
			
			
			<!-- ACTION FRAME -->
			<a href="javascript:void(0)" ng-click="board()"  class="button toolbar-button toolbar-button-right  hide menu-upload-project" title="Dashboard">
                <i class="fa fa-dashboard"></i>
                Board
            </a>			
			
			<a href="javascript:void(0)" ng-click="public()"  class="button toolbar-button toolbar-button-right  hide menu-upload-project" title="Upload">
                <i class="fa fa-share-square-o"></i>
                Preview
            </a>
			<a href="javascript:void(0)" ng-click="applyMode()"  class="button toolbar-button toolbar-button-right  hide menu-upload-project" title="Upload">
                <i class="fa fa-share-square-o"></i>
                Apply Mode
            </a>				
			
			
			<button style="display:none" ng-click="newProject()" id="add-project">Add project</button>
				
			
		</div>


	</div>
	<!-- /Secondary toolbar -->
	<!-- // TODO: Continue localization here -->

	<div id="sidebar-wrapper" class="sidebar-width" >
		<div class="sidebar-search">
			<input id="search-input" type="text"  autocomplete="off" ng-model="q" placeholder="Search projects"/>
			<span id="search-icon"></span>
			<span id="clear-search"></span>
		</div>

		<div id="sidebar">
			<div id="stencils-holder" >
		
				<?php
				if(!empty($this->projects)){
					foreach($this->projects as $key=>$project){
						$project = (object) $project;
			
				?>
					<div class="css-treeview css-treeview-project div-item<?php echo $project->id;?>" uuid="<?php echo $project->id;?>" >
						<ul>
							<li class="iteam li-project-name" name="<?php echo $project->name;?>" uuid="<?php echo $project->id;?>">
								<input type="checkbox", id="something<?php echo $key;?>" />
								<label for="something" class="nameproject"><?php echo $project->name;?></label>
						
								<i class="fa fa-trash-o trash-i class_remove_project" uuid="<?php echo $project->id;?>"  ></i>
								<ul class="dirproject">
									<?php echo $project->dir;?>
								
								</ul>
							</li>
						</ul>
					</div>
				<?php
					}
				}
				?>

			</div>
		</div>
	</div>
</div>

<div id="main-wrapper" class='ui-animated' >
	<?php echo $content;?>
    
	
</div>





	<div id="footer-wrapper">
		<div id="footer">
			<a href="<?php echo Yii::app()->createUrl('/about');?>" target="_blank">About</a>
			<a href="<?php echo Yii::app()->createUrl('/terms');?>" target="_blank">Terms</a>
			<a href="<?php echo Yii::app()->createUrl('/privacy');?>" target="_blank">Privacy</a>
			<a href="<?php echo Yii::app()->createUrl('/help');?>" target="_blank">Help</a>
			<a href="<?php echo Yii::app()->createUrl('/faq');?>" target="_blank">FAQ</a>
			<a href="<?php echo Yii::app()->createUrl('/contact');?>" target="_blank">Contact</a>
			<a href="#" title="Powered by UserVoice" class="open-feedback">Feedback</a>
		</div>
	</div>




	<script src="<?php echo baseTheme();?>/js/boostraps/bootstrap.min.js"></script>
	<script src="<?php echo baseTheme();?>/js/jquery.alerts.js"></script>
	<script src="<?php echo baseTheme();?>/js/jquery.toastmessage.js"></script>
	<script src="<?php echo baseTheme();?>/js/dashboard.message.js"></script>
	<script src="<?php echo baseTheme();?>/js/drop.project.js"></script>
	<script src="<?php echo baseTheme();?>/js/project.js"></script>
	<script src="<?php echo baseTheme();?>/js/dashboard.js"></script>
</body>


</html>
